﻿@* Copyright (c) Kurrent, Inc and/or licensed to Kurrent, Inc under one or more agreements. *@
@* Kurrent, Inc licenses this file to you under the Kurrent License v1 (see LICENSE.md). *@

@using KurrentDB.UI
@using Microsoft.AspNetCore.Http
<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="utf-8"/>
	<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
	<base href="/"/>
	<link href="css/app.css" rel="stylesheet"/>
	<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap" rel="stylesheet"/>
	<link href=@Assets["_content/MudBlazor/MudBlazor.min.css"] rel="stylesheet" />
	<link href=@Assets["_content/MudBlazor.Markdown/MudBlazor.Markdown.min.css"] rel="stylesheet"/>
	<link rel="icon" type="image/png" href="favicon.png"/>
	<HeadOutlet @rendermode="PageRenderMode" />
</head>

<body>
<Routes @rendermode="PageRenderMode" />
<script src=@Assets["_content/BlazorMonaco/jsInterop.js"]></script>
<script src=@Assets["_content/BlazorMonaco/lib/monaco-editor/min/vs/loader.js"]></script>
<script src=@Assets["_content/BlazorMonaco/lib/monaco-editor/min/vs/editor/editor.main.js"]></script>
<script src="_framework/blazor.web.js"></script>
<script src=@Assets["_content/MudBlazor/MudBlazor.min.js"]></script>
<script src=@Assets["_content/MudBlazor.Markdown/MudBlazor.Markdown.min.js"]></script>
<script src=@Assets["_content/Extensions.MudBlazor.StaticInput/NavigationObserver.js"]></script>
</body>

</html>

@code {
	[CascadingParameter] private HttpContext HttpContext { get; set; } = default!;

	private IComponentRenderMode PageRenderMode =>
		HttpContext.AcceptsInteractiveRouting() ? InteractiveAuto : null;
}
